home *** CD-ROM | disk | FTP | other *** search
- /* meuControlador.h v100
-
- Created, written and tested by Fernando Lucas
- January 2005
-
- Copyright © 2003-2005 Fernando Lucas Santos
-
- This file is part of iModz.
-
- iModz is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- iModz is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with iModz; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
- */
- #import <Cocoa/Cocoa.h>
-
- // INTERFACE INTERFACE BUILDER ITENS
- // Take a look at the NIB to understand the connections and names.
- @interface meuControlador : NSObject
- {
- // Mostly options for the user
- IBOutlet NSPopUpButton *escolhaProg;
- IBOutlet NSMatrix *ordemMensagem;
- IBOutlet NSTextField *mensagem;
- IBOutlet NSTextField *segundos;
- IBOutlet NSTextField *campoTransp;
- IBOutlet NSTextField *prefixoMusica;
- IBOutlet NSTextField *sufixoMusica;
- IBOutlet NSTextField *prefixoSite;
- IBOutlet NSTextField *sufixoSite;
-
- // tableView for messages list
- IBOutlet NSTableView *listaMensagens;
-
- IBOutlet NSWindow *iModz; // main window
- IBOutlet NSWindow *Opcoes; // preferences window
-
- IBOutlet NSButton *escolhaOcultar;
- IBOutlet NSButton *botaoAtivar;
- IBOutlet NSButton *escolhaObservar;
- IBOutlet NSButton *escolhaMensagens;
- IBOutlet NSButton *escolhaAtivar;
-
- IBOutlet NSSlider *escolhaAlpha;
- IBOutlet NSSlider *segundosValor;
-
- IBOutlet NSMenuItem *enviarMensagemiChat; // Send iChat Message
-
- IBOutlet NSTextField *campoAdicionarMsg;
-
- NSMutableArray *records;
- NSMutableDictionary *record;
- }
-
- // Ações - Actions
- - (IBAction)retornar:(id)sender; // returns a value
- - (IBAction)retornarValor:(id)sender; // returns a value and set it on a object
- - (IBAction)observar:(id)sender; // Look for changes on the preferences panel
- - (IBAction)salvarPrefs:(id)sender; //saves the preferences into the user's default
- - (IBAction)enviarMensagem:(id)sender; //send message from iTunes to iChat
- - (IBAction)desativarOcultar:(id)sender; // switch for Activate on Start [on/off]
- - (IBAction)adicionarMensagem:(id)sender; // Add message to the messages list
- - (IBAction)removerMensagem:(id)sender; // Remove message to the messages list
-
- - (IBAction)abrirManual:(id)sender; // Opens iModz HTML Help in Help Viewer.app
-
- // Métodos - Methods
- - (void)ocultar;
- - (void)observarMethod; //Method to observe some changes on the preferences panel
- - (void)chamarScript; //calls the script which begins the communication between apps - fires the timer
- - (void)Uptime; // Calls UPTIME command from Unix Shell
- - (void)iniciarTempo; //initiates timer
- - (void)iTunes;
- - (void)iTunesB;
- - (void)iChat;
- - (void)Mail;
- - (void)verificarOrdemMensagem; //Verifies message order (iTunes)
- - (void)DataHora;
- - (void)metodoMensagem; // Verifies which kind of message (singular personal or message list) is selected
- - (void)Mensagem;
- - (void)Safari;
- - (void)rodarMensagens; // Switch messages
- - (void)iniciarCom;
- - (void)desativarOpcoes; //Deactivate Options
- - (void)limparStatus; //Cleans Status message after errors/give up
-
- // Método para executar AppleScripts remotos
- // Method to execute remote AppleScripts
- - (void)executeAppleScript:(NSString *)filename;
-
- //Method to check currently open apps
- - (BOOL)aplicativoEstaAberto:(NSString *)aplicativo;
-
- @end
-